package com.luiz.aero.android.data;

import java.util.ArrayList;
import java.util.List;



public class Route {
	List<Position> route;

	public Route(Position position) {
		super();
		this.route = new ArrayList<Position>();
		this.route.add(position);
	}
	
	public void addPosition(Position pos){
		route.add(pos);
	}
	
	public Position getLastPosition(){
		return route.get(route.size()-1);
	}
	
	public Position getInitialPosition(){
		return route.get(0);
	}

	public List<Position> getRoute() {
		return route;
	}

}
